import request from '@/util/request'
import baseUrl from './base'

export function insertErpMaterial(data) {
  return request({
    url: baseUrl + '/erp/material/insert',
    method: 'post',
    data
  })
}

export function listErpMaterial(data) {
  return request({
    url: baseUrl + '/erp/material/list',
    method: 'post',
    data
  })
}

export function deleteErpMaterial(data) {
  return request({
    url: baseUrl + '/erp/material/delete',
    method: 'post',
    data
  })
}

export function getErpMaterial(data) {
  return request({
    url: baseUrl + '/erp/material/get',
    method: 'post',
    data
  })
}

export function updateErpMaterial(data) {
  return request({
    url: baseUrl + '/erp/material/update',
    method: 'post',
    data
  })
}

